.class Les/bw$a;
.super Ljava/lang/Object;
.source "DbHelper.java"

# interfaces
.implements Les/bw$j;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/bw;->a(Ljava/util/List;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Les/bw;


# direct methods
.method constructor <init>(Les/bw;Ljava/util/List;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/bw$a;->b:Les/bw;

    iput-object p2, p0, Les/bw$a;->a:Ljava/util/List;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()Z
    .locals 7

    .line 1
    iget-object v0, p0, Les/bw$a;->a:Ljava/util/List;

    invoke-static {v0}, Les/gi;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 3
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    goto :goto_0

    :cond_0
    const-string v3, "/"

    .line 4
    invoke-virtual {v1, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 5
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 6
    :cond_1
    iget-object v3, p0, Les/bw$a;->b:Les/bw;

    invoke-virtual {v3, v1}, Les/bw;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v3

    .line 7
    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v4

    if-eqz v4, :cond_2

    return v2

    .line 8
    :cond_2
    iget-object v2, p0, Les/bw$a;->b:Les/bw;

    const-string v4, "pid"

    invoke-static {v2, v4, v3}, Les/bw;->a(Les/bw;Ljava/lang/String;Ljava/util/List;)Ljava/util/List;

    move-result-object v2

    .line 9
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    const/4 v4, 0x0

    if-eqz v3, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 10
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "audio"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 11
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "video"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 12
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "image"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 13
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "apk"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 14
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "text"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 15
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "zip"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 16
    iget-object v5, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v5}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    const-string v6, "encrypt"

    invoke-virtual {v5, v6, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_1

    .line 17
    :cond_3
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "path"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, " LIKE "

    .line 18
    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "%"

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 19
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 20
    iget-object v2, p0, Les/bw$a;->b:Les/bw;

    invoke-static {v2}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    const-string v3, "directory"

    invoke-virtual {v2, v3, v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    goto/16 :goto_0

    :cond_4
    return v2
.end method
